﻿@{
    ViewBag.Title = "单位维护";
    Layout = "~/Views/Shared/_layoutContent.cshtml";
}
@section head{
    <script src="@Url.Content("~/Scripts/js/System/UnitMgr.js")" type="text/javascript"></script>
}
@*<div class="Bar">
    单位名称：<input type="text" id="txtName" />
    启用状态<select id="dpStatus">
        <option value="1">启用</option>
        <option value="0">禁用</option>
    </select>
    <a id="btnSearch" href="javascript:void(0)" class="easyui-linkbutton" icon="icon-search">查询</a>
</div>*@
<table id="dgFeeUnit">
    <thead>
        <tr>
            <th field="ID" checkbox="true" width="30">选择</th>
            <th field="Name" width="100">单位名称</th>
            <th field="Level" width="120">单位类型</th>
            <th field="TimeValue" width="120">权重</th>
        </tr>
    </thead>
</table>
<!--dialog begin-->
<div id="dgAddOrEdit" action="#">
    <form id="frmAddOrEditUnit">
        <table class="layoutTable">
            <tr>
                <td style="width: 40%">
                    <input type="hidden" id="CIID" name="ID" value="" dn="ID" />
                    <label class="name">单位名称:</label>
                </td>
                <td>
                    <input type="text" name="name" dn="Name" id="name" vRequired="t"/>
                </td>
            </tr>
            <tr>
                <td>
                    <label class="name">单位类型:</label></td>
                <td>
                    <select id="SELECT_LEVEL" dn="Level" onchange="ControlTimeValue()">
                        <option value="1" selected="selected">计量</option>
                        <option value="2">计时</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>
                    <label class="name">权重:</label></td>
                <td>
                    <input type="text" name="TimeValue" dn="TimeValue" id="TimeValue"  vRequired="t"/>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <label class="tips">权重表示一个单位收费时间,月为基数如果小于一个月,请设置为0</label>
                </td>
            </tr>
        </table>
    </form>
</div>
<!--dialog end-->
